ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / SizeOf Method / SizeOf<T>() Method
A struct to evaluate.

In This Topic
    SizeOf<T>() Method
    In This Topic
    Return the sizeof a struct from a CLR. Equivalent to sizeof operator but works on generics too.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SizeOf(Of T As {New, Struct})() As Integer
    public static int SizeOf<T>()
    where T: new(), struct

    Type Parameters

    T
    A struct to evaluate.

    Return Value

    Size of this struct.
    See Also